package com.atguigu.IO;

import java.io.File;
import java.util.Scanner;

public class demo2 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入要扫描的路径:");
        File root=new File(scanner.next());
        if(!root.isDirectory()){
            System.out.println("你输入的路径不存在");
            return;
        }
    }
}
